![]() |
ALMaSS
1.0
The Animal, Landscape and Man Simulation System
|
#include <skylarks_all.h>
Public Member Functions | |
Skylark_Base (int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual void | ReInit (int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) |
virtual double | On_FoodSupply (double) |
void | AddStriglingMort (int lifestage) |
virtual int | WhatState () |
bool | InSquare (rectangle R) |
![]() | |
unsigned | SupplyFarmOwnerRef () |
AnimalPosition | SupplyPosition () |
APoint | SupplyPoint () |
int | SupplyPolygonRef () |
int | Supply_m_Location_x () |
int | Supply_m_Location_y () |
virtual void | KillThis () |
virtual void | CopyMyself () |
void | SetX (int a_x) |
void | SetY (int a_y) |
TAnimal (int x, int y, Landscape *L) | |
virtual void | BeginStep (void) |
BeingStep behaviour - must be implemented in descendent classes. More... | |
virtual void | Step (void) |
Step behaviour - must be implemented in descendent classes. More... | |
virtual void | EndStep (void) |
EndStep behaviour - must be implemented in descendent classes. More... | |
virtual void | ReinitialiseObject (int x, int y, Landscape *L) |
Used to re-use an object - must be implemented in descendent classes. More... | |
virtual void | Dying () |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
virtual bool | OnFarmEvent (FarmToDo) |
![]() | |
int | GetCurrentStateNo () |
Returns the current state number. More... | |
void | SetCurrentStateNo (int a_num) |
Sets the current state number. More... | |
bool | GetStepDone () |
Returns the step done indicator flag. More... | |
void | SetStepDone (bool a_bool) |
Sets the step done indicator flag. More... | |
virtual void | ReinitialiseObject () |
Used to re-use an object - must be implemented in descendent classes. More... | |
TALMaSSObject () | |
The constructor for TALMaSSObject. More... | |
virtual | ~TALMaSSObject () |
The destructor for TALMaSSObject. More... | |
void | OnArrayBoundsError () |
Used for debugging only, tests basic object properties. More... | |
Public Attributes | |
double | m_pesticide_accumulation |
double | m_pcide_conc |
TTypesOfSkState | m_CurrentSkState |
int | Age |
double | m_Size |
int | m_Born_x |
int | m_Born_y |
int | m_MyHome |
The vegetation type where the skylark was born. More... | |
SkTerritories * | m_OurTerritories |
Skylark_Population_Manager * | m_OurPopulationManager |
Protected Member Functions | |
bool | DailyMortality (int mort) |
virtual void | PesticideResponse () |
![]() | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Additional Inherited Members | |
![]() | |
int | m_Location_x |
int | m_Location_y |
Landscape * | m_OurLandscape |
![]() | |
int | m_CurrentStateNo |
The basic state number for all objects - '-1' indicates death. More... | |
bool | m_StepDone |
Indicates whether the iterative step code is done for this timestep. More... | |
Skylark_Base::Skylark_Base | ( | int | x, |
int | y, | ||
SkTerritories * | Terrs, | ||
Landscape * | L, | ||
Skylark_Population_Manager * | SPM, | ||
int | bx, | ||
int | by, | ||
int | mh | ||
) |
References m_Born_x, m_Born_y, m_CurrentSkState, TALMaSSObject::m_CurrentStateNo, m_MyHome, m_OurPopulationManager, m_OurTerritories, m_pesticide_accumulation, and toss_Initiation.
|
inline |
References Skylark_Population_Manager::AddStriglingMort().
Referenced by Skylark_Clutch::OnFarmEvent(), Skylark_Nestling::OnFarmEvent(), Skylark_PreFledgeling::OnFarmEvent(), and Skylark_Female::OnFarmEvent().
|
protected |
References random().
Referenced by Skylark_Clutch::st_Developing(), Skylark_Nestling::st_Developing(), and Skylark_PreFledgeling::st_Developing().
bool Skylark_Base::InSquare | ( | rectangle | R | ) |
References TAnimal::m_Location_x, TAnimal::m_Location_y, rectangle::m_x1, rectangle::m_x2, rectangle::m_y1, and rectangle::m_y2.
|
inlinevirtual |
Reimplemented in Skylark_Nestling.
|
inlineprotectedvirtual |
Reimplemented in Skylark_Nestling, Skylark_Male, Skylark_Female, and Skylark_PreFledgeling.
|
virtual |
References m_Born_x, m_Born_y, m_CurrentSkState, TALMaSSObject::m_CurrentStateNo, m_MyHome, m_OurPopulationManager, m_OurTerritories, m_pesticide_accumulation, TALMaSSObject::ReinitialiseObject(), and toss_Initiation.
Referenced by Skylark_Adult::ReInit(), Skylark_Nestling::ReInit(), and Skylark_Clutch::ReInit().
|
inlinevirtual |
Reimplemented from TAnimal.
Referenced by Skylark_Population_Manager::ProbePOM().
int Skylark_Base::Age |
Referenced by Skylark_Male::DefendTerritory(), Skylark_PreFledgeling::GetFood(), Skylark_Female::GetMigrationMortality(), Skylark_Male::GetMigrationMortality(), Skylark_Nestling::On_FoodSupply(), Skylark_PreFledgeling::OnFarmEvent(), Skylark_Adult::ReInit(), Skylark_PreFledgeling::ReInit(), Skylark_Nestling::ReInit(), Skylark_Clutch::ReInit(), Skylark_Adult::Skylark_Adult(), Skylark_Clutch::Skylark_Clutch(), Skylark_Nestling::Skylark_Nestling(), Skylark_PreFledgeling::Skylark_PreFledgeling(), Skylark_Male::st_CaringForYoung(), Skylark_Clutch::st_Developing(), Skylark_Nestling::st_Developing(), Skylark_PreFledgeling::st_Developing(), Skylark_Female::st_Emigrating(), Skylark_Male::st_Emigrating(), Skylark_Male::st_FindingTerritory(), Skylark_Female::st_Immigrating(), Skylark_Male::st_Immigrating(), Skylark_Nestling::st_Maturing(), Skylark_Male::Step(), Skylark_Male::SupplyBroodAge(), and Skylark_Population_Manager::TheFledgelingProbe().
int Skylark_Base::m_Born_x |
int Skylark_Base::m_Born_y |
TTypesOfSkState Skylark_Base::m_CurrentSkState |
Referenced by Skylark_Female::BeginStep(), Skylark_Male::BeginStep(), Skylark_Population_Manager::BreedingPairsOutput(), Skylark_Clutch::EndStep(), Skylark_Nestling::EndStep(), Skylark_PreFledgeling::EndStep(), Skylark_Male::EndStep(), Skylark_Female::OnBroodDeath(), Skylark_Male::OnBroodDeath(), Skylark_Female::OnClutchDeath(), Skylark_Nestling::OnDeserted(), Skylark_Male::OnEggHatch(), Skylark_Female::OnEggsHatch(), Skylark_Male::OnEvicted(), Skylark_Clutch::OnFarmEvent(), Skylark_Nestling::OnFarmEvent(), Skylark_PreFledgeling::OnFarmEvent(), Skylark_Female::OnFarmEvent(), Skylark_Male::OnFarmEvent(), Skylark_Female::OnMateDying(), Skylark_Male::OnMateDying(), Skylark_Female::OnMateHomeless(), Skylark_Male::OnMateLeaving(), Skylark_Clutch::OnMumGone(), Skylark_Male::OnPairing(), Skylark_Male::OnPreFledgelingMature(), Skylark_Male::OnReHouse(), Skylark_Female::OnStopFeedingChicks(), Skylark_Nestling::OnYouHaveBeenEaten(), Skylark_PreFledgeling::PesticideResponse(), Skylark_Nestling::PesticideResponse(), Skylark_PreFledgeling::ReInit(), ReInit(), Skylark_Female::SensibleCopy(), Skylark_Male::SensibleCopy(), Skylark_Base(), Skylark_PreFledgeling::Skylark_PreFledgeling(), Skylark_Clutch::st_Dying(), Skylark_Nestling::st_Dying(), Skylark_PreFledgeling::st_Dying(), Skylark_Female::st_Dying(), Skylark_Male::st_Dying(), Skylark_Male::st_FollowingMate(), Skylark_Clutch::Step(), Skylark_Nestling::Step(), Skylark_PreFledgeling::Step(), Skylark_Female::Step(), and Skylark_Male::Step().
int Skylark_Base::m_MyHome |
The vegetation type where the skylark was born.
Referenced by Skylark_Adult::CopyMyself(), ReInit(), Skylark_Base(), Skylark_Clutch::st_Hatching(), Skylark_Nestling::st_Maturing(), Skylark_PreFledgeling::st_Maturing(), and Skylark_Population_Manager::TheFledgelingProbe().
Skylark_Population_Manager* Skylark_Base::m_OurPopulationManager |
Referenced by Skylark_Adult::CopyMyself(), Skylark_Male::EstablishingATerritory(), Skylark_Female::EstablishTerritory(), Skylark_PreFledgeling::GetFledgelingEM(), Skylark_PreFledgeling::GetFood(), Skylark_Female::GetMigrationMortality(), Skylark_Male::GetMigrationMortality(), Skylark_Nestling::OnDeserted(), Skylark_Male::OnEvicted(), Skylark_Female::OnMateDying(), Skylark_Female::OnMateHomeless(), Skylark_Nestling::OnYouHaveBeenEaten(), ReInit(), Skylark_Adult::RemoveEM(), Skylark_Base(), Skylark_Male::st_Arriving(), Skylark_Clutch::st_Developing(), Skylark_Nestling::st_Developing(), Skylark_Female::st_Dying(), Skylark_Female::st_Floating(), Skylark_Male::st_Floating(), Skylark_Female::st_GivingUpTerritory(), Skylark_Clutch::st_Hatching(), Skylark_Female::st_Incubating(), Skylark_Female::st_Laying(), Skylark_Nestling::st_Maturing(), Skylark_PreFledgeling::st_Maturing(), Skylark_Female::st_StartingNewBrood(), Skylark_Female::st_StoppingBreeding(), Skylark_Female::Step(), and Skylark_Male::Step().
SkTerritories* Skylark_Base::m_OurTerritories |
Referenced by Skylark_Male::ConstructAHabitatTable(), Skylark_Adult::CopyMyself(), Skylark_Male::EstablishingATerritory(), Skylark_Female::EstablishTerritory(), Skylark_Male::OnEvicted(), Skylark_Female::OnMateDying(), Skylark_Male::OnMateLeaving(), Skylark_Male::OnReHouse(), Skylark_Male::ReEvaluateTerritory(), ReInit(), Skylark_Base(), Skylark_Male::st_AttractingAMate(), Skylark_Female::st_Dying(), Skylark_Male::st_Dying(), Skylark_Female::st_Finding_Territory(), Skylark_Male::st_FindingTerritory(), Skylark_Male::st_FollowingMate(), Skylark_Female::st_GivingUpTerritory(), Skylark_Clutch::st_Hatching(), Skylark_Female::st_Laying(), Skylark_Nestling::st_Maturing(), Skylark_PreFledgeling::st_Maturing(), and Skylark_Female::st_StoppingBreeding().
double Skylark_Base::m_pcide_conc |
Referenced by Skylark_Female::FeedYoung(), Skylark_Adult::RemoveEM(), and Skylark_Male::st_CaringForYoung().
double Skylark_Base::m_pesticide_accumulation |
double Skylark_Base::m_Size |
Referenced by Skylark_Adult::CopyMyself(), Skylark_Nestling::On_FoodSupply(), Skylark_Female::PesticideResponse(), Skylark_Nestling::PesticideResponse(), Skylark_Adult::ReInit(), Skylark_PreFledgeling::ReInit(), Skylark_Nestling::ReInit(), Skylark_Adult::Skylark_Adult(), Skylark_Nestling::Skylark_Nestling(), Skylark_PreFledgeling::Skylark_PreFledgeling(), Skylark_Male::st_CaringForYoung(), Skylark_Nestling::st_Developing(), Skylark_PreFledgeling::st_Developing(), Skylark_Nestling::st_Maturing(), Skylark_PreFledgeling::st_Maturing(), and Skylark_Male::SupplyBroodWeight().